Method and system for a multitenancy telephone network

ABSTRACT

A method and system for operating a multitenancy telephony system including a call queue that stores call requests received from a plurality of users; an expandable and contractible telephony resource duster that establishes call sessions for call requests; a analysis system that calculates capacity requirements of the system; a resource allocator that manages the scaling and operation of the telephony resource cluster; and a plurality of telephony network channels that are used as telephony communication channels for call sessions.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.15/445,645, filed 28 Feb. 2017, which is a continuation of U.S. patentapplication Ser. No. 15/097,206, filed 12 Apr. 2016, which is acontinuation of U.S. patent application Ser. No. 14/626,427, filed 19Feb. 2015, which is a continuation of U.S. patent application Ser. No.14/158,281, filed 17 Jan. 2014, now issued as U.S. Pat. No. 8,995,641,which is a continuation of U.S. patent application Ser. No. 13/632,872,filed 1 Oct. 2012, which is a continuation of U.S. patent applicationSer. No. 12/716,127, filed 2 Mar. 2010, now issued as U.S. Pat. No.8,315,369, which claims the benefit of U.S. Provisional Application No.61/156,758, filed 2 Mar. 2009, U.S. Provisional Application No.61/249,493, filed 7 Oct. 2009, and U.S. Provisional Application No.61/296,270, filed 19 Jan. 2010, all of which are incorporated in theirentirety by this reference.

This application is related to prior application Ser. No. 12/417,630,filed 2 Apr. 2009, which is incorporated in its entirety by thisreference.

TECHNICAL FIELD

This invention relates generally to the telephony field, and morespecifically to a new and useful multitenancy telephone network in thetelephony field.

BACKGROUND

A telephone network has historically used a channel architecture for atelephone session or connection. This channel architecture has afoundation in the history of telephony; a physical wired connection orchannel needed to be physically connected to make a telephone call. Theconcept of channels is still used today. Subscribers to a telephonenetwork are conventionally required to pay on a per channel basis. Usersthat wish to have a public branch exchange (“PBX”), call center, orsimilar telephony application typically subscribe to a service and havea fixed number of channels that are available to them and only them. Asthe number of channels is part of their contract, they cannot exceedthat number of channels (or else the call or telephone session willfail). Since most applications only see full capacity usage on rareoccasions, the user often pays for more channels than are typicallyused.

In contrast to the channel based architecture of the telephone network,packet based network innovations have seen a rise in recent years, suchas voice over internet protocol (VOIP), internet based applications, andinternet-based telephony applications. With newer technology coming tothe telephony field there are unique challenges arriving for handlingthe hardware and software capacity demands. Dedicated hardware andsoftware often perform tasks during a telephone call session or even actas an intermediary system for connecting a caller to an internet basedapplication. Telephone systems generally have higher performanceexpectations than a website based application. While a user of a websiteexpects a website and software to take time to load and processinformation, a caller experiences frustration in delays or unresponsiveinteractions while on the phone. Additionally, the telephonyapplications are still dependent on the channel based telephone system,which adds yet another barrier to scalability. The telephone network andexisting telephone application software and hardware architecture limitthe growing capabilities of the telephony application field. Thus, thereis a need in the telephony field to create a new and useful multitenancytelephone network. This invention provides such a new and useful systemand method.

Objects of the Invention

The present invention provides a system and method for providing amultitenancy telephone network for telephony applications. One objectiveof the present invention is to manage shared resource usage in amulti-user environment and to dynamically scale resources to satisfycapacity requirements. A related effect of this objective is that thesum total of the apparent number of resources available to each user isgreater than the actual number of resources used to implement themulti-tenant telephone network. Another objective of the presentinvention is to efficiently use resources of a telephony platform byprovisioning the processing and storage resources to satisfy capacityrequirements, effectively leaving other unused resources for alternativeapplications, powered off for power saving, or any suitable functions.Another objective of the present invention is to make the use of aduster of telephony resources transparent to an application of a user.This transparency is preferably preserved despite situations whereoperation of an application is distributed between a plurality oftelephone service resources and may involve a plurality of telephonesessions on different channels. These and other objects of the inventionare accomplished by the preferred embodiments of the invention,including a system for multitenancy telephone network, a method foroperating a multitenant telephone network, a method of operating adynamic telephone network, and a method of distributing calls betweentelephone hardware, each described in the following sections.

BRIEF DESCRIPTION OF THE FIGURES

FIG. 1 is a flowchart representation of a preferred embodiment for themethod of operating a multitenant telephone network;

FIGS. 2-4 are schematic representations of preferred embodiments of asystem for a multitenancy telephone network;

FIG. 5 is a schematic representation of a preferred embodiment of theinvention using a cluster of call transcribers;

FIG. 6 is a flowchart of a preferred embodiment for the method foroperating a dynamic telephone network;

FIG. 7 is a flowchart of a preferred embodiment of the inventionimplementing a conference call; and

FIG. 8 is a flowchart of preferred embodiment of the invention receivingan incoming call.

DESCRIPTION OF THE PREFERRED EMBODIMENTS

The following description of the preferred embodiments of the inventionis not intended to limit the invention to these preferred embodiments,but rather to enable any person skilled in the art to make and use thisinvention.

1. System for a Multitenancy Telephone Network

As shown in FIGS. 2-4, the system 100 of the preferred embodimentincludes a telephony resource cluster 110, a call queue 120, an analysissystem 130, a resource allocator 140, and a plurality of telephonynetwork channels 150. The telephony resource 110 cluster preferablyincludes a plurality of allocated telephony network channels 152 and/ora plurality of telephony resources 112 such as a plurality of callrouters, a load balancer, and may additionally include a serviceapplication. The system functions to distribute the use of the networkand system resources and dynamically adjust the system based on capacityrequirements.

The telephony resource cluster 110 (or “cluster”) functions as ascalable (expandable and/or contractible) collection of resources, whereat least one resource is used to create a phone call session requestedby a user. The cluster 110 is preferably a collection of hardware and/orsoftware components that can dynamically adjust to satisfy processingand/or storage requirements. The cluster 110 preferably appears as ahardware and/or software cloud to outside devices, such that managementof hardware allocation and usage is handled internally by the system. Inone variation shown in FIG. 2, the telephony resource cluster 110, ispreferably a plurality of telephony resources 112 which functions toprovide intermediary processing tasks for a call request or callsession, such as establishing a call session, converting telephonyinstructions into call actions, transcribing a call, or directing acall. In another variation shown in FIG. 3, the telephony resourcecluster 110 is preferably a plurality of connections to allocatedtelephony network channels 152, where an allocated telephony networkchannel 152 is a channel of the allocated telephony network channels 152that has been activated or designated as a channel available for a callsession.

The telephony resources 112 are preferably software or hardwareresources that are provisioned for a particular telephony processingtask. There are preferably a plurality of telephony resources 112, andthere may be a plurality of types of telephony resources that performdifferent dedicated tasks. A telephony resource 112 preferably includesa computer processors and/or computer storage devices. The telephonyresource 112 may be a physical hardware device, virtual machine, asoftware program/routine, and/or any suitable combination to provide theprocessing and storage operations of a telephony resource 112. In somecases, a telephony resource 112 may include dedicated hardware orsoftware. Since the telephony resources 112 share the basic functionallyas either processing power or data storage, the core functionality of atelephony resource 112 may be reprovisioned such that the telephonyresource 112 performs a different dedicated task. The resource allocator140 (and more specifically the load balancer 142) preferablyreprovisions telephony resources 112 to act as different parts of theresource cluster 110. For example, the duster may include a number oftext-to-speech servers and a number of call routers, but at some pointin time there may be a low number of text-to-speech operations beingperformed and an increased number of telephony applications, and so atext-to-speech server is preferably reprovisioned as a call router. Inone variation, the plurality of telephony resources 112 (i.e., theduster 110) preferably includes a plurality of call routers 114.Additionally or alternatively, the cluster may include other hardwaredevices or software instances such as media processing systems,transcription systems, text-to-speech systems, call recorders, call datastorage, or any suitable hardware (physical device or virtual machine)or software. The resource allocator 140 for the duster preferablyincludes a load balancer 142 that manages the distribution of processingtasks and the operation of the plurality of telephony resources 112.Additionally, the cluster may include a service application and/or acall router network that can cooperatively resolve issues that resultfrom using a plurality of resources.

The plurality of call routers 114 functions to initiate or receive callsfrom telephony devices and provide telephony application relatedprocessing. Preferably, the call routers connect to an applicationserver, which is preferably the source of the call request. Theplurality of call routers 114 is preferably a dynamic number of callrouters 114 that can be adjusted according to capacity requirements. Asstated above, in alternative embodiments the plurality of call routers114 may be replaced by or combined with other suitable telephonyhardware or software resources such as media processing systems,transcription systems, text-to-speech systems, or other specializedhardware or software resources that are used in a telephony application.In one example, a plurality of transcription hardware or virtualizedresources may be used in place of call routers for transcribing phonecalls, as shown in FIG. 5. Additionally, a call router 114 may bereprovisioned as a media processing system, transcription system,text-to-speech system, or for any suitable process, and similarly anyprocessor may be reprovisioned to serve as a call router. The number ofhardware or software resources may additionally or alternatively beallocated or deallocated so that any desired number of resources in anysuitable combination may be operated at any time. A hardware instancemay be powered down, put into energy saving mode, or placed in anysuitable state when deallocated. The telephony resources 112 mayadditionally or alternatively be operated as virtualized resources on acloud computing platform (which may be operated by an outside party suchas Elastic Compute Cloud operated by Amazon). When a telephony resources112 such as a call router 114 is deallocated the virtualized resourcesmay be returned to the vendor, given to other customers of the cloudcomputing platform, ending the virtualization of the resources, or anysuitable process. A software instance may be quit or deleted whendeallocated. The ratio of resources, such as the ratio of call routersto media processing systems, may be adjusted or maintained.

A call router 114 is preferably connected to a Public Switched TelephoneNetwork (PSTN) device over the PSTN network, such that it can receiveand make calls from PSTN-connected devices, such as landlines, cellularphones, satellite phones, or any other suitable PSTN-connected devices,as well as non-PSTN devices, such as Voice-Over-Internet-Protocol (VOIP)phones, SIP devices, Skype, Gtalk, or other Internet addressable voicedevices. Thus the call routers 112 can preferably create connections tothe telephone network of the distributed telephone controller. The callrouter 112 may alternatively or additionally function as or include amessage router for use with telephony messaging such as SMS (ShortMessage Service) messages or MMS (Multi Media Messaging). The callrouter 112 can preferably connect to a messaging network, such that itcan receive and send messages from SMS/MMS network devices, cellularphones, computers, smartphones, or any suitable SMS/MMS network devices.The call router 112 may also send or receive text messages, multimediamessages, emails, faxes and other suitable PSTN-compatible communicationmessages. The call router 112 preferably communicates with theapplication server using an application layer protocol, more preferablyusing the HTTP (Hypertext Transfer Protocol), or secure HTTPS (HypertextTransfer Protocol Secure), protocol. The application server preferablyhosts a telephony application, sound file, text file, a database, and/orany suitable media, resource or file that can be used by the call routerfor telephone interactions. The call router 112 may additionallygenerate call router resources. The call router resources are preferablyaccessible by the application server and other devices (such as othercall routers) through a call router API. The call router resourcefunctions as an addressable representation of call router meta-data,internal call router state, or the state of a given resource used by thecall router. For example a call router 114 may record a call and savethe recording as a call router resource.

Additionally, the telephony resource cluster 110 of the preferredembodiment may include a service application 116 that functions as amessaging component to coordinate functionality of an application thathas been distributed across various call routers 114, hardwareresources, and/or software resources. The service application 116 ispreferably an internal resource that is used when normal operation of anapplication is prevented because the operation of an application isdistributed amongst various hardware and software resources of thecluster 110. The service application 116 is preferably a messagingservice that offers reliable messaging where a message is delivered to aparticular destination (such as to another call router 114). The serviceapplication 116 may alternatively offer broadcasting messaging thatannounces a message without knowing who receives a message of if themessage was received. As a first example, a hang-up service application116 may be used to coordinate hanging up call sessions on different callrouters 114. The hang-up service is preferably used to communicate tothe appropriate call routers 114 to cancel outgoing calls when, forexample, an application wants to dial a plurality of numbers but thenhang up all unanswered calls once one of the calls is answered. As asecond example, a multiple input service may gather and input commandsfrom multiple telephone devices. So dual-tone multi-frequency (DTMF)input or voice commands may be issued by any caller and communicated tothe application even if the calls are distributed over multiple callrouters 114 within the cluster. This may be used in voting applicationswithin a conference call. In this way, a telephone application does notneed to actively account for processing and call handling beingdistributed within the cluster, and the hardware and software resourcesof the cluster preferably appear as a single entity to outsideapplications because of the internal service applications 116.

Additionally, the telephony resource cluster 110 of the preferredembodiment may include a call router network 118 that functions to allowa level of communication and synchronization between various callrouters 114. The call router network 118 may additionally oralternatively be applied to other hardware or software resources. Thecall router network 118 is preferably used to access shared resources oras a communication channel. In one exemplary application, a voice overinternet protocol (VOIP) connection is established over the call routernetwork 118 for mixing audio from various call routers. The VOIPconnection is preferably used in implementing conference callsdistributed over multiple call routers 114. As another example, the callrouter network 118 may additionally be used to stream audio from a callrouter to a realtime internet audio stream. As another example, the callrouter network 118 may be used to access data on another telephonyresource 112 such as by using the call router API to access a callrouter resource. The service application 116 and the call router network118 may additionally cooperate in synchronizing applications distributedwithin the cluster.

The call queue 120 of the preferred embodiment functions to manage astack of call requests. The call queue 120 is preferably a list ofoutbound call requests that have not been serviced or been assignednecessary resources. The requests are preferably serviced at a ratesuitable for the current capacity of the network 150 and telephonyresource cluster 110. The servicing rate may alternatively be adjustedaccording to the capacity of the distributed telephony controller 144,the telephony resource cluster 110, and/or number of requests in thequeue 120. A call request (such as one made by a telephony application)is preferably placed in the call queue 120 when capacity is exceeded oralternatively placed in the call queue 120 for every request or based onany suitable rule.

In one variation, an application preferably has associated user limits,in particular: an inter-call request rate limit (throttle) and a totallimit (cap). The throttle and cap are preferably used to determine thepositioning of requests in the call queue. The limits may alternativelybe assigned to an account, phone number, or any suitable entity.Telephony messages (e.g., SMS or MMS) are one variation of a callrequest that can additionally be placed in the call queue. Inbound andoutbound telephony message can preferably be queued because inboundmessages do not require immediate action unlike inbound calls. The SMSmessage is preferably sent after the request is serviced in the queue.SMS messages and/or MMS messages may alternatively be queued in adedicated message queue. SMS message may have a rate limit (throttle)and total limit (caps) that varies from requests. Requests received atany rate from a user are preferably spaced in time in the call queueaccording to the throttle. There is preferably a latency enforcedbetween call requests from an application. Requests of different usersare preferably ordered in the queue in a staggered or alternatingfashion as shown in FIG. 6, but alternatively, users may have prioritybased on a service plan, first-come-first-serve policy, type of callrequest, and/or any suitable policy. The cap is preferably a limit onthe total number of requests a user can make in a given amount of time.The user limits, handling, spacing, and/or ordering of the call queue120 function to prevent one application from unfairly dominating theusage of the telephone network 150 or telephony resource cluster 110 atany one time. Additionally, applications may request access to telephonyresources 112 as soon as possible or at some time in the future (e.g., auser schedules a call or calls for a later time). Additionally oralternatively, the user limits may be adjusted or set according to theneeds of an application. An application may have particular requirementsbased on the nature or characteristics of the application of the user.The user limits are preferably set according to the contract and/orpricing model that a user selects or by any suitable means.

In another variation, the call queue 120 is dedicated to requests of asingle user entity. In this variation, there is preferably a pluralityof individually assigned call queues 120. Call requests are preferablyorganized into a call queue 120 for each user. Telephony messagerequests alternatively have a queue for each phone number. A userrequests can preferably be added to the individually assigned queue 120at any time. Each queue is preferably serviced (i.e., dequeued) on aschedule that considers the per-user limits (such as resource limits,system-wide limits, etc.). In other words the dequeuing occurs in analternating fashion between the plurality of call queues 120. Theindividually assigned call queues may additionally be for particularresources, and the dequeuing preferably occurs according to thedequeuing rate of the particular resource. The dequeuing rate ispreferably related to the capacity of the resource but may alternativelybe based on any suitable criteria. As with the other queuing variations,queuing may alternatively occur according to any suitable queuingmethodology such as randomly, in a round-robin fashion, with fairqueuing, with weighted fair queuing, based on actual resourceutilization, and/or any suitable methodology. As an alternative toqueuing based on account/phone number, call or message requests may bequeued based on time, priority, usage history, or any suitable aspect.There may additionally be a control queue used to coordinate thedequeuing of individually assigned call queues (or message queues) 120.

As mentioned above, the call queue 120 may include an additional oralternative system for handling telephony messages (e.g., SMS or MMSmessages). SMS messages preferably have additional limitations on theirservicing rates and restrictions. SMS messages are preferably not onlyqueued for sharing telephone network access with various users, butrates are also preferably implemented to prevent SMS messages from asingle user from being rate limited, identified as spam. A call queue120 for telephony messages may include at least two types of queues: acontrol queue and a phone number queue. The phone number queuepreferably functions as a personal queue of a single user for telephonemessages the user wants to send, and the control queue functionssubstantially similar to the multi-user queue described above for thecall queue 120. The individually assigned call queue 120 mayalternatively be used without the control queue, and the individuallyassigned call queue 120 may be based on account phone number or anysuitable assignment. The control queue and phone number queue preferablyfunctions to isolate the queuing of messages for a particularapplication and the messages of the plurality of messages. The contentof the SMS message (the text) or MMS message (the multimedia) ispreferably not stored in the call queue directly, and a reference to theSMS message content is preferably stored. This functions to reduce theload on the queue. The SMS/MMS content is preferably stored and accessedwhen the queued reference is serviced.

A queue popper 122 (i.e., a dequeuer) is preferably a software orhardware mechanism that functions to select call requests to servicefrom the call queue The queue popper 122 preferably selects callrequests at a preferred rate, but the queue popper 122 may alternativelyselect calls requests according to capacity or available resources, or acombination thereof. There may additionally be a plurality of queuepoppers 122 that function to simultaneously select call requests fromthe call queue 120. The number of call poppers 122 may be variable.Additional or special queue poppers 122 may be used for the additionalSMS call queues. The call queue(s) 120, the queue popper(s) 122, or anysuitable combination are preferably used to control the throttling (orservicing rate) of the call requests. The throttling may be performed ona per-phone number, per-account (as in a multi-tenant application),and/or according to any call/message attribute.

The analysis system 130 of the preferred embodiment functions to analyzethe system to predict resource requirements. The analysis system 130preferably monitors a plurality of aspects of the system. The analysissystem 130 may monitor the current capacity such as network or hardwareoperation levels or trends (increasing or decreasing); usage historysuch as logged data to find correlations in capacity (e.g., detectingpatterns); queue length and queue entry latency; analysis ofapplications such as historical patterns from past usage of anapplication; and/or any suitable aspects. Patterns in capacity needs arepreferably found related to the time of day, day of the week, yearlypatterns, usage patterns (such as if an increase in capacity needs byone user indicates increase in capacity needs by other users), calllocation, call duration of calls, and/or any suitable indicator. Theanalysis system 130 preferably makes distinctions between inbound andoutbound capacity for telephone network channels. The analysis systempreferably generates data for the resource allocator 140, a distributedtelephone controller 144, a load balancer 142, and/or additionally thecall queue 120. The predictions or data from the analysis system mayadditionally be used for provisioning capacity of the distributed callcontroller, planning capacity requirements of the static capacity of thetelephone network, the number of call routers, hardware or softwareresources within the duster, and/or parameters of queue management. Theanalysis system 130 preferably compares expected and actual load, andprovides data that is used to compensate for the variability inutilization of resources of the system.

The resource allocator 140 of the preferred embodiment functions toscale and manage the operation of the telephony cluster 110. Theresource allocator 140 additionally preferably reprovisions telephonyresources 112 of the cluster 110, allocates new telephony resources 112,deallocates telephony resources, and/or any other suitable allocationprocess. The resource allocator 140 may additionally control theprovisioning of call queues and other devices of the system. Theresource allocator 140 preferably uses data of the analysis system 130in determining the provisioning and operation of resources. The resourceallocator 140 preferably uses information from the analysis system 130to predict required telephony resource 112 capacity. The resourceallocator 140 preferably uses the predicted capacity requirements todetermine how many hardware (physical or virtualized) or softwareresources need to be operating, and the resource allocator preferablyallocates, deallocates, or reprovisions telephony resources 112 (e.g.,call routers and/or other hardware or software resources) as necessary.The resource allocator 140 may additionally use startup time, operationcost, or other parameters of hardware and software resources whendetermining the number and ratio of resources to have allocated at aparticular time. The resource allocator 140 also preferably keeps trackof the quantity of resources currently available, and makes resourceavailability information available to other system components, includingdequeuers, load balancers etc. Such resource availability information ispreferably used by other system components to adjust operation of thesystem components. The resource allocator 150 preferably monitors theresources and reprovisions resources in real time.

The resource allocator 140 of the preferred embodiment preferablyincludes a load balancer 142 that functions to distribute processingtasks amongst the call routers and other hardware. The load balancer 142of the preferred embodiment preferably optimizes the distribution ofprocessing tasks such that the plurality of call routers 114 is operatedat or near an optimal level. The operation of the call routers 114 maybe optimized for performance, energy, cost, and/or any suitableconditions. The load balancer 142 preferably directs tasks (e.g.,servicing of call requests/sessions) to appropriate call routers 142 (ortelephony resource 112) as the tasks are created. A task is preferablyan operation of a telephony application, but may alternatively be a callrequest or call session. In one example, one hundred call routers 114may provide the call router tasks for one hundred telephonyapplications. In a second example, one hundred call routers 114 may eachhandle a single call session associated with one telephony application,such as for a conference call application with one hundred participants.The resource allocator 140 preferably sends notifications as to thecurrent status of resources of the system (the load of resources, thenumber of resources, etc.) to the load balancer 142. The load balancer142 distributes requests to currently available and running resourcesmatching the requirements of the application being load balanced, basedon data provided by the resource allocator 140.

The resource allocator 140 of the preferred embodiment may include adistributed call controller 144 that functions to controls usage andoperation of the telephone network 150 by the system. The distributedcall controller preferably manages the shared usage of the telephonenetwork channels 150 by the plurality of telephony resources. Thedistributed call controller 144 may alternatively be a subset ofmultiple telephone networks if multiple network providers or carriersare used. The operation of the distributed call controller 144preferably functions to operate an allocated number of channels forcurrent capacity requirements of the telephone network 150. Theallocated channels are preferably channels within the available staticchannel capacity that are in use or prepared for use. The distributedcall controller preferably has less than or equal capacity as the staticchannel capacity at any given time. The capacity of the distributed callcontroller 150 can preferably be increased by allocating more resourcesof the telephone network to the call controller, and the capacity of thedistributed call controller 144 can preferably be decreased bydeallocating resources of the telephone network. As an example, acommodity hardware node may be added to the telephone network to run atelephony software stack during high capacity requirements. Thedistributed call controller 144 preferably uses the analysis system 130to predict or respond to the desired capacity requirements. Thetelephone network 150 may additionally be divided into inbound channels,outbound channels, and bidirectional channels that can be used forreceiving calls, making calls, and both, respectively. The telephonenetwork 150 may further include SMS or MMS inbound and outboundchannels. The distributed call controller 144 preferably manages theusage of the type of channels according to predicted usage. Thebidirectional channels are preferably used for flexibility in capacityrequirements. As one example, if inbound call load is expected to behigh, then outbound calls are preferably directed to outbound channelsto leave more capacity for inbound calls. The distributed callcontroller 144 may additionally manage the number and usage of allocatedchannels according to subscription or contracts from network providers.Channels may be used allocated or deallocated to ensure that volumepricing thresholds or other network conditions are satisfied.

A telephone network with a static number of channels 150 is preferablythe base infrastructure for providing users with telephone networkaccess. Telephony sessions are preferably communicated over thetelephone network and the telephony sessions preferably includetelephony voice sessions and/or text/media messaging (telephonymessaging). The static number of channels is preferably the total numberof concurrent telephony sessions or calls that can be supported at onetime. The number of channels is typically limited by the number ofinterconnections available to a specific carrier or network. Thetelephone network 150 may alternatively be composed of multiple carriersor network providers or the Public Switched Telephone Network, but theplurality of carriers or networks is preferably managed or handled asone telephone network. The static number of channels is preferably a setnumber for a period of time (usually based on a contract with atelephone company), and the number is preferably large enough to providesufficient capacity. The static number of channels preferably determinesthe capacity of a network and the ability of the telephone network toconnect with other networks. The operation of the telephone network ispreferably handled by providing applications access to a channel of thetelephone network. The telephone network may have a given number ofchannels not being used at any given time. In one variation, thetelephone network may alternatively operate unused channels in anunused-mode. The unused mode may be a full or partial hardware powerdown mode, a hardware sleep mode, a secondary use (such as fornon-crucial uses that can preferably be interrupted with minimal adverseeffects), and/or any suitable way. The unused mode would function toreduce operation cost and/or maximize the utility of unused capacity.The telephony network channels 150 are preferably Public SwitchedTelephone Network (PSTN) connections but may alternatively be SessionInitiation Protocol (SIP) trunks or any suitable device to create atelephony network connection to a telephony device.

2. Method of Operating a Multitenant Telephone Network

As shown in FIG. 1, the method 100′ of operating a multitenant telephonynetwork of the preferred embodiment includes the steps of multiplexingcall requests of a plurality of users to a telephony resource S110,creating a first call session from the call request through thetelephony resource S130, and multiplexing the call session with aplurality of additional call sessions to a telephony channel S140. Themethod 100′ functions to create an efficient and scalable network systemfor resource intensive telephone applications. The telephony resource ispreferably part of a telephony resource cluster. The telephony resourcecluster preferably scales to satisfy immediate capacity demands whichfunctions to reduce operation cost and allow a wide variety ofapplications to use the multitenant telephony network due to the abilityto handle a wide spectrum of network loads. Additionally, the method100′ functions to allow the operation of a telephony application to bedistributed between a variety of multi-user, shared resources (e.g., atelephony resource) such that the specific goals of telephoneapplications are not limited by the multitenant telephony network. Themethod 100′ of the preferred embodiment is preferably implemented by asystem described above, but may alternatively be implemented by anysuitable system.

Step S110, which includes multiplexing call requests of a plurality ofusers to a telephony resource, functions to share the use of a telephonyresource between a plurality of users. A single telephony resource ispreferably shared between a plurality of users/applications. Themultiplexing preferably occurs in a form of time division multiplexingin which call requests are sent to telephony resource in an alternatingfashion. The time division multiplexing is preferably based oncompletion of complete call sessions or processes. In other words, userstake turns using the telephony resource to create a call session and runan application. For example, a first customer preferably has a callrequest serviced by a telephony resource and upon completion of the callsession of the call request, a second user may have a call requestserviced by the same telephony resource. A call request is preferablyreceived from a user or more specifically a telephony applicationresiding on an external server, but the call request may alternativelybe sent from any suitable source. The call request is preferablyreceived over a packet-based communication channel, in other words anon-direct communication channel. In one variation, the call request ispreferably received in a HTTP or HTTPS message but may alternatively bereceived through any suitable application communication protocol. StepS110 may additionally include queuing a call request of a user S112,which functions to gate or prioritize incoming call requests. The callqueue is preferably used for outbound requests, while inbound calls arepreferably handled immediately (or else the call session will mostlikely fail). Alternatively, an inbound call may be queued for fullservice, with a “ringing” audio played back while call is waiting in thequeue to be fully serviced. A queue may, however, be used for inboundtelephony messages because telephony messages such as SMS messages andMMS messages will be resent if not received on the first attempt. Thecall queue is preferably a list of pending call requests from aplurality of users. An additional queue may additionally oralternatively be used for telephony messages. The call requests arepreferably ordered within the queue in a way that balances access toresources. Each user (e.g., account, application, or phone number) ispreferably assigned an inter call request limit (a throttle) and a limiton the maximum number of call requests that can be made in a specifiedamount of time (a cap). Call requests are preferably selected forservicing at a specified rate or by a device (i.e., a queue popper),which may be selecting calls based on current load on the telephonyresource cluster. The queue may alternatively be operated in anysuitable variation such as those described above. A queue may beassigned to each user or phone number. Queuing may alternatively occuraccording to any suitable queuing methodology such as randomly, in around-robin fashion, with fair queuing, with weighted fair queuing,based on actual resource utilization, and/or any suitable methodology. Aload balancer preferably distributes call requests to a telephonyresource that has the least capacity. The load balancer and the callrequest queue preferably cooperatively distribute the load as describedabove.

As an additional step, method 100′ preferably includes provisioningresources of the telephony resource cluster S120, which functions toscale the capacity of the telephony resource cluster to adequatelymultiplex a call request to a telephony resource. Step S120 may includereprovisioning an existing telephony resource of the telephony resourcecluster, allocating additional resources to the telephony resourcecluster, and/or deallocating resources of the telephony resourcecluster, and/or re-allocating resources from one type of resource toanother in realtime. The telephony resource cluster preferably includesa plurality of telephony resources performing various functions oroperations as described above. For example, the telephony resourcecluster may include a plurality of call routers, transcription systems,media processing systems, and text-to-speech systems. A telephonyresource preferably is composed of a computer processor and/or storageresources for a first purpose. As part of S120, a resource of thetelephony resource duster a processor and/or storage device of atelephony resource is preferably reprovisioned for a new second purpose.For example a text-to-speech may be reprovisioned to function as a callrouter at times when more calls need to be served. Additionally, moreresources may be allocated or deallocated which may include adding newresources to the system and/or activating resources, or re-allocatingresources from another customer of a shared resource environment. Theresources are preferably those provided by a multitenant sharedvirtualized computing environment such as a cloud hosting provider(i.e., a web service that provides resizable compute capacity thatallows a user to boot a machine image to create a virtual machineresource), but may alternatively be physical machines either co-locatedor distributed. For example, a number of resources may be operating in apowered down state. When the more capacity is required, the resourcesmay be turned on/booted (i.e., allocated) to serve as a new resource ofthe telephony resource cluster. Similarly, when the telephony resourceduster has more capacity than is currently required a resource may bepowered down, returned to a pool of resources for use by other companies(i.e., deallocated), or any suitable action to end current use of theresource.

Additionally, Step S120 may include analyzing resource capacityrequirements S122 which functions to collect data on real-time orimminent capacity requirements. Data may be collected from the callrequest queue, from stored history on capacity requirements, currentload of the telephony resource cluster, data from an analysis ofapplications, or any suitable source of predicting capacityrequirements. Data from the call request queue may provide informationsuch as number of pending call requests, the type or details of the callrequest, or any suitable queue related information. Stored capacityhistory preferably provides insight to capacity patterns such astemporal patterns throughout the day, week, or year. Current load of thetelephony resource cluster preferably provides information such as thecurrent number of resources of the telephony resource, number ofavailable resources of the telephony resource, the division of type ofresources, the number of deallocated resources, the number of telephonenetwork channels, etc. Application analysis data preferably is data fromthe telephone applications of users on expected or predicted capacityrequirements. An analysis is preferably performed on the operation ofthe application and or gathered from a user on the expected capacityrequirements of the application such as number of calls, peak time forcalls, what type of calls (e.g., conference calls, SMS messages etc.).The analysis information is preferably used to control the provisioning,allocation, and deallocation of resources of Step S120. Additionally,after analyzing the capacity requirements, other components of thesystem such as the telephony resource cluster, telephony resources, callqueue, dequeuers, resource allocator are preferably notified of relevantanalysis information. Particular analysis information may bespecifically sent to a component. For example, the load balancers andthe dequeuers are preferably informed about available resources andadjust operation according to the capacity information.

Step S130, which includes creating a first call session from the callrequest through the telephony resource, functions to convert the callrequest into a call session using the telephony resource. Step S130preferably additionally includes additional processing and stepsspecific to a particular application. In a preferred variation, a callrouter preferably processes telephony instructions of a call request toidentify the destination phone number and then establishes a connectionto the destination phone number as part of Step S140. A transcriptionserver may initiate recording or prepare to record a conversation of thecall session.

Step S140, which includes multiplexing the call session with a pluralityof additional call sessions to a telephony channel, functions toestablish a telephone network connection to a telephony device. Thetelephony channel is preferably a PSTN (Public Switched TelephoneNetwork) connection. This may be a physical wire or some interfacinginfrastructure to connect to the PSTN. In some cases the concept of achannel is preferably subscribed to or rented from a telephone network.In one alternative, a SIP (Session Initiation Protocol) trunk may beused as an internet based gateway to a telephone network. Themultiplexing preferably occurs in a form of time division multiplexingin which call sessions are connected to telephony channel in analternating fashion. The time division multiplexing is preferably basedon completion of complete call session. For example, a particularnetwork channel may first be utilized for a call session of a firstuser, and upon completion of the call, a second call session may beestablished with the particular network channel for a second user. Aspart of Step S140, the telephony channels may additionally includeprovisioning telephony channels S142. This functions to adjust thenumber of available telephone network capacity of the system. Byprovisioning gateways to the telephone network (e.g., call routers orSIP trunks), channels or gateways to channels may be allocated ordeallocated. Such scaling of telephony network channels preferablyallows operation near the current telephone network capacityrequirements. If such scalability was not in use then there would be aset limit on the number of channels that could be simultaneously used.

3. Method of Operating a Dynamic Telephone Network

As shown in FIG. 6, the method 200 of providing a telephony network ofthe preferred embodiment includes the steps of operating a telephonenetwork with a static number of channels S210, providing telephonenetwork channel access to a plurality of users S220, and managing usageof channels to allow a user to access a number of channels that exceedsnormal operation S230. The method functions to allow the operator of thetelephone network to offer high capacity to a plurality of users,without a reduction in quality or reliability of services based onusage. This method is preferably implemented on a system substantiallysimilar to the one described above, but any suitable system mayalternatively be used. The method may additionally be used incombination with the methods herein described. The method 200 furtherfunctions to allow users to use the telephone network without a specificconcern about the number of channels required for operation. The usersof the telephone network are preferably operating telephony applicationssuch as call centers, Private Branch Exchanges (PBX), phone trees,telephony phone applications, VOIP services, SMS or MMS services, and/orany suitable telephony application. The operators of the telephonenetwork are preferably a telephone service provider such as a telephonyplatform provider (e.g., a internet-telephone platform provider), atelephone company (e.g., owners of a telephone network such as AT&T),and/or any suitable party. In a variation of the preferred embodiment,the method 200 may additionally include a distributed call controller, acall queue, and/or the step of assessing capacity requirements.

Step S210, which includes operating a telephone network with a staticnumber of channels, functions to be the base infrastructure forproviding users with telephone network access. The static number ofchannels is preferably the total number of concurrent telephony sessionsor calls that can be supported at one time. The number of channels isconventionally limited by the number of interconnections available to aspecific carrier or network. The telephone network may, however, becomposed of multiple carriers or network providers or the PublicSwitched Telephone Network, but the plurality of carriers or networks ispreferably managed or handled as one telephone network. The staticnumber of channels is preferably a set number for a period of time(usually based on contract with a telephone company), and the number ispreferably large enough to provide sufficient capacity. The staticnumber of channels is preferably an indication of the capacity of anetwork and the ability of the telephone network to connect with othernetworks. The operation of the telephone network is preferably handledby providing users access to a channel of the telephone network. Thetelephone network may have a given number of channels not being used atany given time. In one variation, the telephone network mayalternatively operate unused channels in an unused-mode. The unused modemay be a full or partial hardware power down mode, a hardware sleepmode, a secondary use (such as for non-crucial uses that can preferablybe interrupted with minimal adverse effects), and/or any suitable way.The unused mode would function to reduce operation cost and/or maximizethe utility of unused capacity.

As an additional alternative to the preferred embodiment, the method mayinclude operating a distributed call controller as a subset of thetelephone network S212. The distributed call controller mayalternatively be a subset of multiple telephone networks if multiplenetwork providers or carriers are used. The operation of the distributedcall controller preferably functions to operate an allocated number ofchannels for current capacity requirements of the telephone network. Thedistributed call controller preferably has less than or equal capacityas the static channel capacity at any given time. The capacity of thedistributed call controller can preferably be increased by allocatingmore resources of the telephone network to the call controller, and thecapacity of the distributed call controller can preferably be decreasedby deallocating resources of the telephone network. Access to thetelephony network is preferably facilitated by virtualized hardware orsoftware (such as call routers or SIP trunks). Allocation of moreresources of the telephone network may additionally include avirtualization of a device to access a telephony network. For example avirtualization of a network access channel may be added to add furtheraccess capacity to the telephony network. As another example, acommodity hardware node may be added to the telephone network to run atelephony software stack during high capacity requirements.

Step S220, which includes providing telephone network channel access toa plurality of users, functions to allow a plurality of differentparties to access the channels of the telephone network. The userspreferably subscribe to a service of the operator of the telephonenetwork. The users of the telephone network are preferably operatingtelephony applications such as call centers, Private Branch Exchanges(PBX), phone trees, Interactive Voice Response (IVR) applications,internet-telephony applications, VOIP services, and/or any suitabletelephony application. The user preferably does not subscribe to theservice based on any specific number of channels. From the viewpoint ofthe user, the number of channels is preferably infinite or an irrelevantpoint for the operation of an application of the user. The user ispreferably presented a per usage or time perspective (e.g., pricingand/or application usage perspective), while the telephone network isbeing operated on a per channel basis. The operator of the telephonenetwork preferably converts costs associated with the operation of thetelephone network (e.g. fixed capital costs of leasing from a telephonecompany or operation cost) into variable costs for the users. The accessto the telephone network is preferably operated, leased, and/or oncontract from a telephone company (such as AT&T) by a per channel basis.A lease agreement or contract may alternatively be negotiated tominimize per-channel (capacity) cost and preferably emphasize per usageor per time costs, or alternatively, any suitable leasing agreement orcontract may be used. Users preferably pay by usage, a flat rate for atime period, per minute, a combination of usage and time charges, and/orany suitable pricing model.

Step S230, which includes managing usage of channels to allow a useraccess to a number of channels that exceeds normal operation S130,functions to provide high capacity capabilities to users while ensuringthat the quality and reliability of the telephone network is notaversely affected by the usage of other users. An individual user of theplurality of users is preferably allowed to use a number of channelsgreater than an equal division between the plurality of users of thestatic number of channels. The sum total of the maximum number ofchannels an individual user uses at given times may preferably begreater than the static number of channels. The given times where anindividual user has access a maximum number of channels is preferablywhen demand on the telephone network by other users is low. Usage of thetelephone network and the telephony resource cluster is preferably timebased multiplex based on the completion of telephony sessions (i.e.,users share the use of the resources and network). In a simplifiedexample, a telephone network has to channels available and there arefive users. When distributed uniformly, the users would each have 2channels available for usage, but in one preferred embodiment all fiveusers may have access of up to 10 channels each, assuming no other useris using the channels. During regular use of the telephony network, theuser still has the ability to access the maximum number of telephonenetwork channels but the call requests are preferably gated by userlimits implemented by a call queue. In another example extending on theabove example, analysis might indicate that 4 users may use 2 channelsat a given point of time, thus 8 may be available to the 5^(th) user,while keeping capacity available for the first 4 users. Managing theusage of the channels preferably includes managing the usage ofresources such as by: managing a call queue, enforcing user limits,predicting and/or analyzing usage and capacity requirements, adjustingcapacity based on the capacity of the distributed call controller,and/or any suitable steps of managing the resources of the telephonenetwork. Capacity of the distributed call controller may additionally becontrolled or affected by predictions and analysis and user limits mayadditionally be affected.

The method of the preferred embodiment may additionally include the stepof managing a call queue of requests from the plurality of users S232.Step S232 functions to prioritize the handling of call requests fromusers. The call queue is preferably a program or hardware managed stackthat is operated as part of a control architecture of the telephonenetwork. The control architecture preferably manages the telephonenetwork and usage by the plurality of users. The call queue ispreferably a list of call requests awaiting service by the telephonenetwork including telephony voice session requests and/or SMS/MMSmessage requests. The requests are preferably serviced at a ratesuitable for the current capacity of the network and for each user. Theservicing rate may alternatively be adjusted according to the capacityof the distributed call center or number of requests in the queue. Auser request is preferably placed in the call queue when capacity isexceeded or alternatively placed in the call queue for every request orbased on any suitable rule. A user preferably has associated userlimits, in particular: a call rate limit (throttle) and a total limit(cap). The throttle and cap are preferably used to determine thepositioning of requests in the call queue. Requests from a user arepreferably spaced in time in the call queue according to the throttle.Requests of different users are preferably ordered in the queue in astaggered or alternating fashion as shown in FIG. 6, but alternatively,users may have priority based on a service plan, first-come-first-servepolicy and/or any suitable policy. The cap is preferably a limit on thetotal number of requests a user can make in a given amount of time.Subsequent requests are preferably schedule for a later time accordingto the cap, but requests exceeding the cap may be handled in anysuitable manner. For example, if user can make one call per second, andthe user requests too calls, they will be scheduled equally over thenext too seconds. Note that this cap can be described as the number ofcalls/time frame (1/second), or the required latency between calls inthe queue (1 second). The user limits, handling, spacing, and/orordering of the call queue function to prevent one user from unfairlydominating the usage of the telephone network at any one time. In thevariation of SMS/MMS message requests, the rate of individual users isconsidered to prevent message filtering by a network. For the SMS/MMSvariation the requests may additionally be queued in a control queue anda phone number queue. The contents of the SMS/MMS messages arepreferably stored and a reference to the contents of a message is queuedwhich functions to reduce the load on the queue. A plurality of cacheservicing ports or pointers are preferably used. The servicing ports arepreferably a software and/or hardware control mechanism for operating acall request from the call queue. A servicing port preferably takes arequest from the call queue and connects the corresponding userapplication or user to a telephone network channel. The servicing portmay be a direct connection, but may alternatively be a hardware orsoftware resource such as a call router in a cluster as described above.The servicing ports are preferably less than the static number ofchannels to allow capacity for incoming calls, but the servicing portsmay alternatively be equal to the static number of channels. In oneexample where there are 1000 channels of the telephone network, theremay be 500 service ports. This would leave 500 channels free forincoming calls. Additionally, users may request access to telephonyresources as soon as possible or at some time in the future (e.g., auser schedules a call or calls for a later time). A queue popper ispreferably a software or hardware mechanism responsible for selecting acall from the call queue to service. There may additionally be aplurality of queue poppers to select calls from a call queue.Additionally or alternatively, the user limits may be adjusted or setaccording to the needs of a user. A user may have particularrequirements based on the nature or characteristics of the applicationof the user. The user limits are preferably set according to thecontract and/or pricing model that a user selects or by any suitablemeans.

The method of the preferred embodiment may additionally include the stepof predicting capacity requirements for the distributed call controllerS234. Step S234 functions to assess indicators that correlate to thenumber of telephone network channels needed at a later point. Thepredicting of capacity is preferably accomplished by programmatically ormathematically (through pattern detection or any suitable algorithm)analyzing current and past information but any suitable method mayalternatively be used. Patterns in capacity needs are preferably foundrelated to the time of day, day of the week, yearly patterns, usagepatterns (such as if an increase in capacity needs by one user indicatesincrease in capacity needs by other users), call location, call durationof calls, and/or any suitable indicator. The predictions of Step S234may additionally be used for realtime provisioning, deprovisioning,and/or reprovisioning capacity of the distributed call controller orplanning capacity requirements of the static capacity of the telephonenetwork.

The method of the preferred embodiment may additionally include the stepof reacting to capacity needs of the call queue S236. Step S236functions to use the call queue and other current capacity indicators toadjust the distributed call controller for the current capacityrequirements or anticipated near term requirements. The call queue ispreferably assessed through software or alternatively by any suitablemonitoring of the call queue. The number of calls currently in thequeue, the total number of users currently using the telephone network,incoming calls (that may be not be queued), the frequency of userrequests, and/or any suitable characteristic of the telephone network orthe call queue preferably cause a reaction to the capacity needs. Thereaction is preferably for current overall capacity needs but mayalternatively be for current capacity needs of an individual user or anysuitable party. The reactions may include adjusting the settings of thecall queue (such as call queue service rate or ordering), modifying userlimits, adjusting capacity of the distributed telephone controller,and/or any suitable action. In one example, a call queue may have manycalls scheduled for too seconds after the current time, the distributedcall controller may increase capacity to accommodate the anticipatedcapacity requirements.

The method of the preferred embodiment may additionally include the stepof analyzing capacity needs of a user and predicting the telephonenetwork capacity needs S238. Step S238 functions to detect individualcapacity needs to determine total capacity requirements of the telephonenetwork. Capacity needs of a user are preferably acquired by analyzing atelephony application of a user. Part of the analysis preferablyincludes detecting periodic events that indicate capacity needs of anindividual application. An example of such an event might be anapplication associated with a weekly TV show where callers call inaround the air time of the show. The analysis may alternatively oradditionally include detecting typical call duration for an individualapplication. Some applications may only be used for a brief amount oftime (such as when a short message is played), while other applicationsmay require longer durations of use (such as when a user must navigate along phone tree). Additionally, application history may be used todetermine usage patterns such as by monitoring maximum, minimum, and/oraverage capacity requirements, frequency of requests, duration ofrequests, number of SMS messages sent in a particular time duration,and/or any suitable call characteristic. Usage characteristics of theindividual applications of users are preferably combined with the usagecharacteristics of the other users to determine the total usagecharacteristics and capacity needs of the telephone network. Preferably,the code of the application is preferably analyzed to assess thefunctionality and usage patterns of the application. The applicationcode or operation is preferably programmatically analyzed, but anysuitable method may be used. Alternatively, the user and/or a secondparty may characterize the application and/or telephony service of theuser. This characterization is preferably performed by the user whilesigning up, and preferably includes user expectations for the frequencyof use, times of use, duration of calls, and/or any suitablecharacteristic of the application. The user may additionally prioritizewhen capacity should be highest for their application. Any suitablesteps may be used to analyze an individual application.

As an additional alternative to the preferred embodiment, the method mayinclude adjusting capacity of the distributed call controller S240. StepS240 functions to change the number of active channels of the telephonenetwork to appropriately handle the capacity requirements. Step S240 ispreferably used in combination with Step S212, which includes operatinga distributed call controller. The adjustments to the distributed callcontroller adjust the capacity capability that the operator offers. Thecapacity is preferably adjusted based on the management of the usage ofchannels of the telephone network. The capacity is more preferablyadjusted based on the predictions and analysis of Steps of S234 and/orS236, but may alternatively be adjusted in cooperation with Step S232,Step S238, and/or for any suitable reason. When more capacity is needed,more resources, such as CPU, RAM, DISK, etc., capable of handlingsimultaneous channels or providing more channels, are preferablyallocated to the distributed telephone controller, and conversely whenless capacity is required, resources are preferably deallocated from thedistributed telephone controller. The adjustment of capacity ispreferably made to handle the expected or predicted capacity. The staticcapacity of the telephone network may alternatively or additionally beadjusted. As the telephone network capacity is typically less flexible.Adjustments to the telephone network capacity are preferably made forlong-term capacity needs (e.g., on a per month basis). Any suitableadjustment to the system for more or less capacity may alternatively beused.

4. Method of Distributing Calls Between Telephony Hardware

As shown in FIGS. 7-8, the method 300 of distributing calls betweentelephony hardware of the preferred embodiment includes the steps ofqueuing a call request S310, selecting a load balancing call routerS320, and connecting a call with the selected call router S330. Themethod functions to balance usage of resources used in a telephonyapplication. This method is preferably implemented on a systemsubstantially similar to the one described above, but any suitablesystem may alternatively be used.

Step S310, which includes queuing a call request, functions to manage acall request until the necessary resources are available to service thecall. A call request is preferably instantiated by a telephonyapplication, a call router, a telephony device, and/or any suitablesource of a call request. The call request may additionally be a SMS orMMS message request. The call request is preferably outgoing. Anincoming call is preferably viewed as a more urgent call request than anoutgoing request, and an incoming call may not be queued butalternatively may be passed directly to an available resource.Alternatively incoming call requests (call session initiations) may bequeued, but since incoming calls have more immediacy they are preferablyprioritized or the system must be have short queuing wait where a shortwait is less than the time it would take for an incoming call to fail.The incoming call may alternatively be placed near the front of a queueor positioned in the queue according to separate rules appropriate forthe higher priority of the call request. Similarly, a synchronousoutgoing call request may be queued with high priority. A synchronouscall is a call that another caller is relying on to proceed, as opposedto a new call initiated by an application in which a user will notnotice a delay. Call requests are preferably ordered in the queueaccording to rules based on the throttle, caps, real-time urgency(priority) and/or any suitable factors.

Step S320, which includes selecting a load balancing call router,functions to identify a call router that should handle the call topreferably optimize the operation of a telephone resource cluster. Theselected call router is typically the call router with the least load,but may alternatively be selected to optimize cost, energy usage,processing capability, and/or any suitable variable. Step S320 mayadditionally be applied to other hardware or software resources inaddition to or alternatively to a call router. Call routers of atelephone resource cluster may have variable capacity and performancedepending on hardware and/or software specs. The variability between theplurality call routers is preferably considered in selecting a callrouter. A load balancer substantially similar to the one described aboveis preferably the component that implements step S320, though step S320may be performed by any suitable device. The load balancer is preferablycapable of allocating and deallocating resources of the cluster, and soresources may be allocated and/or deallocated as a substep of S320. Theresource allocator can preferably allocate and deallocate call routers,hardware resources, and/or software resources. The resources arepreferably allocated or deallocated based on current or predictedutilization, but the resources may alternatively be allocated ordeallocated as a function of other resources. For example, one mediaprocessing resource may be allocated (e.g., operating) for every fivecall routers. The selection of a load balancing call router preferablyuses data from an analysis system. So that the step of selecting a loadbalancing call router may include selecting a call router that willbalance load at a future time.

Step S330, which includes connecting a call with a selected call router,functions to pass control of the call to the specified resource. For anoutgoing call, a call router preferably connects through a telephonenetwork to the designated phone number. For an incoming call, the callrouter preferably connects to the specified telephony application;PSTN-connected device(s), such as landlines, cellular phones, satellitephones, or any other suitable PSTN-connected devices; non-PSTN devices,such as Voice-Over-Internet-Protocol (VOIP) phones, SIP devices, Skype,Gtalk, or other Internet addressable voice devices; and/or any suitabledevice associated with the number of the incoming call.

The method of the preferred embodiment may additionally includenetworking call routers that have a shared application S340. Step S340functions to allow communication between multiple call routers. This ispreferably useful in situations where functionality of an application isdistributed over multiple resources (e.g., multiple call routers). Thenetwork preferably allows sharing of resources between call routers.Audio channels of call routers may additionally be mixed and sharedbetween call routers. A VOIP channel is preferably formed over thenetwork for bridging audio of different call routers. For example, aconference call may use the network to bridge audio of multiple callsessions from different call routers.

The method of the preferred embodiment may additionally includesynchronizing applications with a service application S350. The serviceapplication functions to monitor an application distributed over a callrouter cluster and coordinate operation of the application. The serviceapplication may additionally be used to share state information betweenthe call routers. The service application preferably provides a specificfunctionality such as a hang up service or a multiple input service asdescribed above. Any suitable application may be implemented by theservice application such as input-gathering, multi-dialing, callsplitting, call merging, and any suitable feature. Any number of serviceapplications may be used.

As a person skilled in the art will recognize from the previous detaileddescription and from the figures and claims, modifications and changescan be made to the preferred embodiments of the invention withoutdeparting from the scope of this invention defined in the followingclaims.

We claim:
 1. A method for processing a telephony communicationcomprising: associating a first telephony application with a firsttelephony endpoint of a first account; associating a second telephonyapplication with a second telephony endpoint of a second account;initiating a first telephony session for a telephony communication tothe first telephony endpoint; mapping the first telephony application tothe first telephony session; at a resource of a communication resourcecluster, processing the first telephony session with the first telephonyapplication; initiating a second telephony session for a telephonycommunication to the second telephony endpoint; mapping the secondtelephony application to the second telephony session; at the resourceof a communication resource cluster, processing the second telephonysession with the second telephony application.